package com.echovin.esb.gateway.oauth2.service.impl;

import com.echovin.esb.gateway.oauth2.dao.PermissionAndRoleRepository;
import com.echovin.esb.gateway.oauth2.model.PermissionAndRole;
import com.echovin.esb.gateway.oauth2.service.PermissionAndRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionAndRoleServiceImpl implements PermissionAndRoleService {
    @Autowired
    private PermissionAndRoleRepository permissionAndRoleRepository;

    public PermissionAndRoleServiceImpl() {
    }

    @Override
    public List<PermissionAndRole> getAll() {
        return this.permissionAndRoleRepository.getAll();
    }

    @Override
    public List<PermissionAndRole> getAllInterface() {
        return this.permissionAndRoleRepository.getAllInterface();
    }
}

